package mofei.concurrent.task;

import mofei.concurrent.utils.MapHolder;

import java.util.concurrent.Callable;

public class MapAddTask implements Callable<String> {


    @Override
    public String call() throws Exception {
        for (int i = 0; i < 10000; i++) {
            System.out.println("adding");
            MapHolder.map.put(i,i);
        }

        return null;
    }
}
